//
//  SEGPGCDeteailManager.h
//  FrameworkTest
//
//  Created by 刘山 on 2018/4/24.
//  Copyright © 2018年 刘山. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SEGCommentListModel.h"
#import "SEGPictorialDetailCommentListModel.h"
#import "SEGPictorialDoLogicModel.h"
#import "SEGPictorialDetailModel.h"
#import "SEGSquareViewModel.h"
#import "SEGChannelDetailModel.h"
#import "SEGRecommendPGCModel.h"
#import "SEGSharedCommentModel.h"
#import "SEGPgcRecommendModel.h"

@interface SEGPGCDeteailManager : NSObject
/// pgc详情
@property (nonatomic, strong) SEGPictorialDetailModel *pgcDetailModel;
/// 评论总数（不包含子评论）
@property (nonatomic, assign) NSInteger totalComment;
/// 组装的数据
@property (nonatomic, strong) NSArray<NSArray *> *dataArrays;
/// 普通评论数组
@property (nonatomic, strong) NSMutableArray<SEGSharedCommentModel *> *commentsArray;
/// 热门评论列表
@property (nonatomic, strong) NSMutableArray<SEGSharedCommentModel *> *hotCommentArray;

/// 频道详情头部 数据展示源
@property (nonatomic, strong) SEGChannelDetailModel* channelmodel;
/// 频道列表数据
@property (nonatomic, strong) NSArray<SEGPgcRecommendModel *> *channelDataArrays;

/**
 * 请求PGC数据
 * @author Sam
 */
- (void)requestPgcDetailWithPictorialId:(NSString*)pictorialId finished:(SEGNetworkReponse)finished;
- (void)requestMoreFocusWithObjId:(NSString *)objId finished:(SEGNetworkReponse)finished;
- (void)requestHotAndNormalCommentsWithObjId:(NSString *)objId objType:(NSString*)objType pageNo:(NSInteger)pageNo  finished:(SEGNetworkReponse)finished;
- (void)requestHotCommentWithObjId:(NSString*)objId objType:(NSString*)objType finished:(SEGNetworkReponse)finished;
- (void)requestCommentListWithObjId:(NSString*)objId objType:(NSString*)objType pageNo:(NSInteger)pageNo finished:(SEGNetworkReponse)finished;
-(void)requestPGCLikeListWithObjId:(NSString*)objId objType:(NSString*)objType finished:(SEGNetworkReponse)finished;
/**
 * 删除评论
 * @author Wendy
 * @param commentId  评论id
 * @param objType  类型
 */
- (void)requestDeleteCommentWithCommentId:(NSString *)commentId objType:(NSString *)objType finished:(SEGRequestCallBack)finished;

/**
 * 取消对文章的点赞（原收藏）
 * @author Wendy
 * @param objId 被取消对象ID
 * @param objType 被取消对象类型
 * @param finished 回调结果
 */
- (void)requestCancelPraiseByobjId:(NSString*)objId
                           objType:(NSString*)objType
                          Finished:(SEGRequestCallBack)finished;

/**
 * 对文章点赞（原收藏）
 * @author Wendy
 * @param objId    被点赞或浏览主题对象
 * @param objType  被点赞或浏览主题对象类型 1 画报2问题 3评论 4问题答案
 * @param finished 回调结果
 */
- (void)requestPraiseAttentByObjId:(NSString*)objId
                           ObjType:(NSString*)objType
                          Finished:(SEGRequestCallBack)finished;

/**
 * 获取pgc单条评论的子评论
 * @author Wendy
 * @param objId objId
 * @param objType objType
 * @param sourceCommentId sourceCommentId
 */
- (void)requestChildCommentsWithObjId:(NSString*)objId objType:(NSString*)objType sourceCommentId:(NSString *)sourceCommentId finished:(SEGNetworkReponse)finished;

/**
 * 获取态度模式推荐PGC
 * @author Wendy
 * @param objId objId
 */
- (void)requestRecommendPGCWithObjId:(NSString *)objId finished:(SEGNetworkReponse)finished;
/**
 态度模式 推荐数组
 */
@property (nonatomic, strong)NSMutableArray<SEGRecommendPGCModel *> *recommendPGCArray;

/**
 * 对PGC评论进行 踩/顶 操作
 * @author Wendy
 * @param postId  帖子ID
 * @param post_type  帖子类型objType
 * @param commentId  评论ID
 * @param commentatorId  评论人ID
 * @param agreeOrDisagree  踩顶（1踩/2顶）
 */
- (void)requestStepOrTopPGCCommentWithPostId:(NSString *)postId
                                   post_type:(NSString *)post_type
                                   commentId:(NSString *)commentId
                               commentatorId:(NSString *)commentatorId
                             agreeOrDisagree:(NSString *)agreeOrDisagree
                                    finished:(SEGNetworkReponse)finished;

//频道详情
-(void)requestChannelQuery:(NSString *)channelId PageNo:(NSInteger)pageNo PageLimit:(NSInteger)pageLimit Finished:(SEGNetworkReponse)finished;

@end
